package com.jzo2o.health.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.health.model.domain.ReservationSetting;
import com.jzo2o.health.model.dto.request.ReservationSettingUpsertReqDTO;
import com.jzo2o.health.model.dto.response.ReservationDateResDTO;
import com.jzo2o.health.model.dto.response.ReservationSettingResDTO;

import java.time.LocalDate;
import java.util.List;

/**
 * @author liush
 * @date 2024/12/24
 * @description 预约设置
 */
public interface IReservationSettingService extends IService<ReservationSetting> {

    /**
     * 按月查询预约设置
     * @param date
     * @return
     */
    List<ReservationSettingResDTO> getAdminReservationSettingByMonth(String date);

    /**
     * 编辑预约设置
     * @param reservationSettingUpsertReqDTO
     */
    void editNumberByDate(ReservationSettingUpsertReqDTO reservationSettingUpsertReqDTO);

    /**
     * 按月查询可预约日期
     * @param month
     * @return
     */
    ReservationDateResDTO getUserReservationDateByMonth(String month);

    /**
     * 取消订单后预约人数修改
     */
    void updateCount(Long id);

}
